<?php

namespace backend\modules\home\controllers;

use backend\extensions\ApiBaseController;
use backend\services\home\HomeService;

class HomeController extends ApiBaseController
{

    /**
     * 列表
     * * */
    public function actionIndex()
    {
        $params = \Yii::$app->request->get();
        $rules = [
        ];
        $validate = $this->validateParams($params, $rules);
        if ($validate) {
            return $this->jsonError($validate);
        }
        $data = HomeService::index();
        return $this->jsonSuccess($data);
    }

}
